<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:68:"D:\Apache24\htdocs\chenxiangyu\templates\qiye\index\index\index.html";i:1482647004;s:70:"D:\Apache24\htdocs\chenxiangyu\templates\qiye\index\common\header.html";i:1488085808;s:69:"D:\Apache24\htdocs\chenxiangyu\templates\qiye\index\common\slide.html";i:1488086115;s:68:"D:\Apache24\htdocs\chenxiangyu\templates\qiye\index\common\left.html";i:1488081677;s:70:"D:\Apache24\htdocs\chenxiangyu\templates\qiye\index\common\footer.html";i:1488167010;}*/ ?>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <title><?php echo (isset($seo['title']) && ($seo['title'] !== '')?$seo['title']:'管理系统'); ?></title>
    <meta name="keywords" content="<?php echo (isset($seo['keywords']) && ($seo['keywords'] !== '')?$seo['keywords']:'内容管理系统'); ?>">
    <meta name="description" content="<?php echo (isset($seo['description']) && ($seo['description'] !== '')?$seo['description']:'php内容管理系统'); ?>">
    <!-- Bootstrap -->
    <link href="__ROOT__/third/css/bootstrap.min.css" rel="stylesheet">
    
    <script src="__ROOT__/third/css/jquery.min.js"></script>
    <script src="__ROOT__/third/css/bootstrap.min.js"></script>
    <!-- 前端公共样式 -->
    <style>
        @charset "UTF-8";
        body{
            margin: 10px 0px;
        }
        body img{
            max-width: 100%;
        }
        a img{
            max-width: none;
        }
        *{
            outline: none;
        }
        *:focus{
            outline:none;
        }
        a:focus{
            outline:none;
        }
        input:focus{
            outline:none;
        }
        button:focus{
            outline:none;
        }
        button:active{
            outline:none;
        }

        a{
            outline: none;
            color: #555;
        }
    </style>
    <?php 
        \think\Hook::listen('home_head');
     ?>
</head>
<body>
    <div class="container">
        <div class="row" >
            <div class="col-md-4">
                <div style="padding:10px; ">
                    <img src="__ROOT__/system/image/logo.png">
                </div>
            </div>
            <div class="col-md-8 hidden-xs" ">
                <?php if(check_app('mbzs')): ?>
                <div style="padding:10px 0;width:500px ;" class="pull-right">
                    <img src="<?php 
$a=new app\mbzs\model\Mbzs;
echo "__ROOT__/upload/".$a->where('name','header_banner')->find()->value;
 ?>" height="134" width="500"  alt="">
                </div>
                <?php endif; ?>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <nav class="navbar navbar-default">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                       
                    </div>
                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                        <ul class="nav navbar-nav">
                            <li><a href="<?php echo url('index/index/index'); ?>">首页</a></li>
                            <!-- 读取内容模块的栏目 -->
                            <?php if(check_app('content')): 
                                    $data = \app\content\model\Channel::where(['status'=>1,'nav'=>1]) -> order('sort desc,id asc') -> select();
                                    $data = \ebcms\Tree::tree($data);
                                    
                                 if(is_array($data) || $data instanceof \think\Collection): if( count($data)==0 ) : echo "" ;else: foreach($data as $key=>$vo): if(!(empty($vo['rows']) || ($vo['rows'] instanceof \think\Collection && $vo['rows']->isEmpty()))): ?>
                                        <li class="dropdown">
                                            <a href="<?php echo $vo['url']; ?>" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php echo $vo['title']; ?> <span class="caret"></span></a>
                                            <ul class="dropdown-menu">
                                                <?php if(is_array($vo['rows']) || $vo['rows'] instanceof \think\Collection): if( count($vo['rows'])==0 ) : echo "" ;else: foreach($vo['rows'] as $key=>$sub): ?>
                                                <li><a href="<?php echo $sub['url']; ?>" target="<?php echo $sub['target']; ?>"><?php echo $sub['title']; ?></a></li>
                                                <?php endforeach; endif; else: echo "" ;endif; ?>
                                            </ul>
                                        </li>
                                    <?php else: ?>
                                        <li><a href="<?php echo $vo['url']; ?>" target="<?php echo $vo['target']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endif; endforeach; endif; else: echo "" ;endif; endif; ?>
                        </ul>
                        <form class="navbar-form navbar-right" role="search" method="get" action="<?php echo url('content/search/index'); ?>" role="search">
                            <div class="input-group">
                                <input type="text" name="q" class="form-control" value="" placeholder="Search">
                                <span class="input-group-btn">
                                    <button class="btn btn-danger" type="submit">搜索</button>
                                </span>
                            </div>
                        </form>
                    </div>
                </nav>
            </div>
        </div>

        <div class="row">
            <div class="col-md-12 hidden-xs">
                <?php 
	$data = new \app\content\model\Content();
	$data = $data -> attrlist('轮播',4);
 if(!(empty($data) || ($data instanceof \think\Collection && $data->isEmpty()))): ?>
	<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">

		<ol class="carousel-indicators">
			<?php if(is_array($data) || $data instanceof \think\Collection): if( count($data)==0 ) : echo "" ;else: foreach($data as $key=>$vo): ?>
				<li data-target="#carousel-example-generic" data-slide-to="<?php echo $key; ?>" <?php if($key == '0'): ?>class="active"<?php endif; ?>></li>
			<?php endforeach; endif; else: echo "" ;endif; ?>
		</ol>

		<div class="carousel-inner" role="listbox">
			<?php if(is_array($data) || $data instanceof \think\Collection): if( count($data)==0 ) : echo "" ;else: foreach($data as $key=>$vo): ?>
				<div class="item <?php if($key == '0'): ?>active<?php endif; ?>">
					<a href="<?php echo $vo['url']; ?>"><img src="<?php echo thumb($vo['thumb'],841,347); ?>" style="width: 100%;height: 300px;" alt="<?php echo $vo['title']; ?>"></a>
					<div class="carousel-caption">
						<h3><?php echo $vo['title']; ?></h3>
					</div>
				</div>
			<?php endforeach; endif; else: echo "" ;endif; ?>
		</div>

		<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
			<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
			<span class="sr-only">Previous</span>
		</a>
		<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
			<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
			<span class="sr-only">Next</span>
		</a>
	</div>
	<br>
<?php endif; ?>
            </div>
        </div>

        <!-- 当前位置 -->
        <?php 
        $position = \ebcms\Position::get();
         if(count($position) > 1): ?>
        <div class="row">
            <div class="col-md-12">
                <ol class="breadcrumb">
                <?php if(is_array($position) || $position instanceof \think\Collection): if( count($position)==0 ) : echo "" ;else: foreach($position as $key=>$vo): ?>
                    <li><a href="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
                </ol>
            </div>
        </div>
        <?php endif; ?>
<div class="row">
    <div class="col-md-3">
        <!-- 公告 -->
<div class="panel panel-default">
    <div class="panel-heading">
        <span class="title">公告</span>
    </div>
    <div class="list-group">
        <?php 
            $data = \app\content\model\Content::where(['status'=>1,'channel_id'=>'8']) -> limit(4) -> order('sort desc,id desc') -> select();
         if(is_array($data) || $data instanceof \think\Collection): if( count($data)==0 ) : echo "" ;else: foreach($data as $key=>$vo): ?>
            <a href="<?php echo $vo['url']; ?>" class="list-group-item"> <strong>◀):</strong>&nbsp;&nbsp;<?php echo $vo['shorttitle']; ?></a>
        <?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
</div>
<!-- 推荐文章 -->
<div class="panel panel-default">
    <div class="panel-heading">
        <span class="title">推荐</span>
    </div>
    <div class="list-group">
        <?php 
            $data = new \app\content\model\Content();
            $data = $data -> attrlist('推荐',4);
         if(is_array($data) || $data instanceof \think\Collection): if( count($data)==0 ) : echo "" ;else: foreach($data as $key=>$vo): ?>
            <a href="<?php echo $vo['url']; ?>" class="list-group-item"><?php echo mb_substr($vo['title'],0,16); ?></a>
        <?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
</div>
<!-- 联系方式 -->
<?php if(check_app('mbzs')): ?>
<div class="panel panel-default">
    <div class="panel-heading">
        <span class="title">联系我们</span>
    </div>
    <div class="panel-body">
        <?php 
        $a=new \app\content\model\Channel;
       $b=$a->where('name','contactus')->find();
       $c=$b->body;
echo html_entity_decode($c
);
         ?>
        
    </div>
</div>
<?php endif; ?>
    </div>
    <div class="col-md-9">
        <?php 
            $data = \app\content\model\Channel::where(['status'=>1,'name'=>'company']) -> find();
         ?>
        <div class="panel panel-default">
            <div class="panel-heading">
                <span class="title"><?php echo $data['title']; ?></span>
            </div>
            <div class="panel-body">
                <div style="float:left;margin:0 15px 15px 0;"><img src="<?php echo thumb((isset($data['ext']['logo']) && ($data['ext']['logo'] !== '')?$data['ext']['logo']:'')); ?>" style="max-width:160px;" alt=""></div>
                <?php echo htmlspecialchars_decode($data['body']); ?>
            </div>
        </div>
        <div class="row">
            <?php 
                $content = new \app\content\model\Content();
                $data = $content -> attrlist('推荐产品',4);
             if(is_array($data) || $data instanceof \think\Collection): if( count($data)==0 ) : echo "" ;else: foreach($data as $key=>$vo): ?>
            <div class="col-xs-6 col-md-3">
                <a href="<?php echo $vo['url']; ?>" class="thumbnail">
                    <img src="<?php echo thumb($vo['thumb']); ?>" alt="<?php echo $vo['title']; ?>">
                    <hr style="margin:15px 0;">
                    <h4 class="text-center" style=""><strong><?php echo $vo['title']; ?></strong></h4>
                </a>
            </div>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>
</div>
<?php if(check_app('link')): ?>
    <div class="row">
        <div class="col-md-12">
            <!-- 友情链接 -->
            <div class="panel panel-default">
                <div class="panel-heading"><a href="<?php echo url('link/index/index'); ?>" class="pull-right">申请</a>友情链接</div>
                <div class="panel-body">
                    <?php 
                        $data = \app\link\model\Link::where(['status'=>1]) -> order('sort desc') -> limit(20) -> select();
                     if(is_array($data) || $data instanceof \think\Collection): if( count($data)==0 ) : echo "" ;else: foreach($data as $key=>$vo): ?>
                         <a href="<?php echo $vo['url']; ?>" target='_blank'><?php echo $vo['title']; ?></a> 
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
            </div>
        </div>
    </div>
<?php endif; ?>
        <hr>
        <div class="row">
            <div class="col-md-12">
                <p class="pull-right"><a href="#">Back to top</a></p>
                <p>
                    陈翔宇 <a href="#"></a> · <a href="#">陈翔宇</a>
                </p>
            </div>
        </div>
    </div>
    <?php 
        \think\Hook::listen('home_footer');
     ?>
</body>
</html>